import request from "@/utils/request";
export const LoginApi = (data) => request.post('/login',data)
export const QueryPageApi=(id,name,role,page,pageSize)=>request.get(`/user/page?id=${id}&name=${name}&role=${role}&page=${page}&pageSize=${pageSize}`)

export const AddUserApi=(data)=>request.post('/user/add',data)

export const QueryUserApi=(id)=>request.get(`/user/show/${id}`)
export const UpdateUserApi=(data)=>request.put('/user/update',data)
export const DeleteUserApi=(id)=>request.delete(`/user/delete/${id}`) 